package com.sanji.springmvc.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by joe on 17-4-22.
 */
@Controller
public class HelloController {

 /* @RequestMapping("/index")
  public String hello(){

    return "index";
  }*/

  @RequestMapping("/advice")
  public String test(){

    try{
      Integer.parseInt("s");
    }catch (Exception e){
      System.out.println(e.getStackTrace());
    }

    return "test";

  }
}
